<script setup lang="ts">
  /*
   * @description 父组件传递的props属性
   * */
  const { disabled = false } = defineProps<{
    disabled?: boolean;
  }>();
  const switchValue = defineModel<boolean | string | number>();
</script>

<template>
  <div>
    <el-switch v-model="switchValue" :disabled="disabled"></el-switch>
  </div>
</template>

<style scoped></style>
